package com.oa.modules.approvalsec1.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 政策法规库
 *
 * @author jimboo
 * @email jimboo7339@163.com
 */
@Data
@TableName("statute_library")
@ApiModel(value = "政策法规库")
public class StatuteLibraryEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId
    @ApiModelProperty(value = "主键")
    private Integer id;
    /**
     * 父id
     */
    @ApiModelProperty(value = "父id")
    private Integer pid;

    @ApiModelProperty(value = "父名称")
    private String pname;
    /**
     * 级次
     */
    @ApiModelProperty(value = "级次")
    private String type;
    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    private String name;
    /**
     * 政策法规内容
     */
    @ApiModelProperty(value = "政策法规内容")
    private String fdyj;
    /**
     * 文件地址
     */
    @ApiModelProperty(value = "文件地址")
    private String file;


    private String icon;

    private String sort;


    private List<StatuteLibraryEntity> children;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }



    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFdyj() {
        return fdyj;
    }

    public void setFdyj(String fdyj) {
        this.fdyj = fdyj;
    }

    public String getFile() {
        return file;
    }

    public void setFile(String file) {
        this.file = file;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    @Override
    public String toString() {
        return "StatuteLibraryEntity{" +
                "id=" + id +
                ", pid=" + pid +
                ", pname=" + pname +
                ", type='" + type + '\'' +
                ", name='" + name + '\'' +
                ", fdyj='" + fdyj + '\'' +
                ", file='" + file + '\'' +
                ", icon='" + icon + '\'' +
                ", sort='" + sort + '\'' +
                '}';
    }
}
